package com.hcandtx.Bms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.bean.messageBoard;
import com.hcandtx.Bms.mapper.MessageMapper;
import com.hcandtx.Bms.service.IMessageService;

@Service
public class MessageServiceImpl implements IMessageService {

	@Autowired
	MessageMapper messageMapper;
	
	@Override
	public int addmessage(messageBoard message) {
		// TODO Auto-generated method stub
		return messageMapper.addmessage(message);
	}

	

	@Override
	public List<messageBoard> findAll(String productName) {
		// TODO Auto-generated method stub
		return messageMapper.findAll(productName);
	}

}
